<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: Mapping Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00136.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Mapping Class Reference<div class="ingroups"><a class="el" href="a00519.html">mapping - classes representing mathematical mappings</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Mapping" --><!-- doxytag: inherits="ConstMapping" -->
<p>Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.  
 <a href="a00136.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00298_source.html">MappingBase.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Mapping:</div>
<div class="dyncontent">
<div class="center"><img src="a00851.png" border="0" usemap="#Mapping_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Mapping:</div>
<div class="dyncontent">
<div class="center"><img src="a00852.png" border="0" usemap="#Mapping_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00853.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643">InterpolationMethod</a> { <a class="el" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643a14b1d21bd98ca6e7e77dca120dd5eb0f">STEPS</a>, 
<a class="el" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643afc951c0875bda3e7b8f6a9f7d4e90d01">NEAREST</a>, 
<a class="el" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643ac8a952576b8d13258ba0f3c0f1584f9b">LINEAR</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Types of interpolation methods for mappings.  <a href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00136.html">Mapping</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#a973f72ed384d6cead14f23d20bafee93">operator=</a> (const <a class="el" href="a00136.html">Mapping</a> &amp;copy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Mapping assignment operator.  <a href="#a973f72ed384d6cead14f23d20bafee93"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#a4aaa0e0cce7a366dee7b5be53595a74f">swap</a> (<a class="el" href="a00136.html">Mapping</a> &amp;s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps data with another Mapping.  <a href="#a4aaa0e0cce7a366dee7b5be53595a74f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#ab21dd4d22496e6b5dc34b8b6a55553b1">Mapping</a> (const <a class="el" href="a00086.html">DimensionSet</a> &amp;dims)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> with the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> as domain.  <a href="#ab21dd4d22496e6b5dc34b8b6a55553b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d721f5e319fdcf56b4285d1368795d1"></a><!-- doxytag: member="Mapping::Mapping" ref="a4d721f5e319fdcf56b4285d1368795d1" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#a4d721f5e319fdcf56b4285d1368795d1">Mapping</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> with the time dimension as domain. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5c7bc87eacd0314404aa2e6dbe091ba"></a><!-- doxytag: member="Mapping::Mapping" ref="ad5c7bc87eacd0314404aa2e6dbe091ba" args="(const Mapping &amp;o)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Mapping</b> (const <a class="el" href="a00136.html">Mapping</a> &amp;o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#ab8906dfac661d5c6a0a35cf1744f06ed">setValue</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos, argument_value_cref_t value)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the value of the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the specified position.  <a href="#ab8906dfac661d5c6a0a35cf1744f06ed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#a2a63bc33cabcddf8c0f5938afd2e3328">appendValue</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos, argument_value_cref_t value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Appends the passed value at the passed position to the mapping. This method assumes that the passed position is after the last key entry of the mapping.  <a href="#a2a63bc33cabcddf8c0f5938afd2e3328"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab78335a7a119893d1e04495f7f587ca3"></a><!-- doxytag: member="Mapping::createIterator" ref="ab78335a7a119893d1e04495f7f587ca3" args="()=0" -->
virtual <a class="el" href="a00137.html">MappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#ab78335a7a119893d1e04495f7f587ca3">createIterator</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer of a new Iterator which is able to iterate over the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> and can change it. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00137.html">MappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#a8723ba0f78d2f259f1f150c9db346cb2">createIterator</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer of a new Iterator which is able to iterate over the function and can change it.  <a href="#a8723ba0f78d2f259f1f150c9db346cb2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00059.html">ConstMappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#acdf62aed4b8a469e63c036e75567c2e3">createConstIterator</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method.  <a href="#acdf62aed4b8a469e63c036e75567c2e3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00059.html">ConstMappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#aa659ff5ecd1020261cbd39d136ea1f57">createConstIterator</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method.  <a href="#aa659ff5ecd1020261cbd39d136ea1f57"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95f064bd4bc5a22aef1cf0e4a6052ec7"></a><!-- doxytag: member="Mapping::clone" ref="a95f064bd4bc5a22aef1cf0e4a6052ec7" args="() const =0" -->
virtual <a class="el" href="a00136.html">Mapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#a95f064bd4bc5a22aef1cf0e4a6052ec7">clone</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a deep copy of this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afcd49c5a61e13dfa6041531540a252be"></a><!-- doxytag: member="Mapping::constClone" ref="afcd49c5a61e13dfa6041531540a252be" args="() const " -->
virtual <a class="el" href="a00058.html">ConstMapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00136.html#afcd49c5a61e13dfa6041531540a252be">constClone</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a deep const copy of this mapping by using the according "clone()"-implementation. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type. </p>
<p>This class extends the <a class="el" href="a00058.html" title="Represents a not changeable mapping (mathematical function) from domain with at least the time to a A...">ConstMapping</a> interface with write access.</p>
<p>See <a class="el" href="a00058.html" title="Represents a not changeable mapping (mathematical function) from domain with at least the time to a A...">ConstMapping</a> for details.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Karl Wessel </dd></dl>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="aa713c0cd84f74727888bef5b9e8b0643"></a><!-- doxytag: member="Mapping::InterpolationMethod" ref="aa713c0cd84f74727888bef5b9e8b0643" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643">Mapping::InterpolationMethod</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Types of interpolation methods for mappings. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="aa713c0cd84f74727888bef5b9e8b0643a14b1d21bd98ca6e7e77dca120dd5eb0f"></a><!-- doxytag: member="STEPS" ref="aa713c0cd84f74727888bef5b9e8b0643a14b1d21bd98ca6e7e77dca120dd5eb0f" args="" -->STEPS</em>&nbsp;</td><td>
<p>interpolates with next lower entry </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa713c0cd84f74727888bef5b9e8b0643afc951c0875bda3e7b8f6a9f7d4e90d01"></a><!-- doxytag: member="NEAREST" ref="aa713c0cd84f74727888bef5b9e8b0643afc951c0875bda3e7b8f6a9f7d4e90d01" args="" -->NEAREST</em>&nbsp;</td><td>
<p>interpolates with nearest entry </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa713c0cd84f74727888bef5b9e8b0643ac8a952576b8d13258ba0f3c0f1584f9b"></a><!-- doxytag: member="LINEAR" ref="aa713c0cd84f74727888bef5b9e8b0643ac8a952576b8d13258ba0f3c0f1584f9b" args="" -->LINEAR</em>&nbsp;</td><td>
<p>interpolates linear with next lower and next upper entry constant before the first and after the last entry </p>
</td></tr>
</table>
</dd>
</dl>
<div class="fragment"><pre class="fragment">                           {
    <a class="code" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643a14b1d21bd98ca6e7e77dca120dd5eb0f" title="interpolates with next lower entry">STEPS</a>,
    <a class="code" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643afc951c0875bda3e7b8f6a9f7d4e90d01" title="interpolates with nearest entry">NEAREST</a>,
    <a class="code" href="a00136.html#aa713c0cd84f74727888bef5b9e8b0643ac8a952576b8d13258ba0f3c0f1584f9b" title="interpolates linear with next lower and next upper entry constant before the first and after the last...">LINEAR</a>
  };
</pre></div>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab21dd4d22496e6b5dc34b8b6a55553b1"></a><!-- doxytag: member="Mapping::Mapping" ref="ab21dd4d22496e6b5dc34b8b6a55553b1" args="(const DimensionSet &amp;dims)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Mapping::Mapping </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00086.html">DimensionSet</a> &amp;&#160;</td>
          <td class="paramname"><em>dims</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> with the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> as domain. </p>
<p>The passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> has to contain the time dimension! </p>
<div class="fragment"><pre class="fragment">                                   :
    <a class="code" href="a00058.html#a7cfc5de32a0d03abfeb9b77fdcf7a413" title="Initializes the ConstMapping with a the time dimension as domain.">ConstMapping</a>(dims) {}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2a63bc33cabcddf8c0f5938afd2e3328"></a><!-- doxytag: member="Mapping::appendValue" ref="a2a63bc33cabcddf8c0f5938afd2e3328" args="(const Argument &amp;pos, argument_value_cref_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Mapping::appendValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">argument_value_cref_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Appends the passed value at the passed position to the mapping. This method assumes that the passed position is after the last key entry of the mapping. </p>
<p>Depending on the implementation of the underlying method this method could be faster or at least as fast as the "setValue()"-method.</p>
<p>Implementations of the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> interface can override this method if appending values to the end of the mapping could be implemented faster than the "setValue()" method. Otherwise this method just calls the "setValue()"-method implementation. </p>

<p>Referenced by <a class="el" href="a00127.html#ac7fd9376f5521851bd3888d99dc451c2">LogNormalShadowing::filterSignal()</a>.</p>
<div class="fragment"><pre class="fragment">                                                                             {
    <a class="code" href="a00136.html#ab8906dfac661d5c6a0a35cf1744f06ed" title="Changes the value of the Mapping at the specified position.">setValue</a>(pos, value);
  }
</pre></div>
</div>
</div>
<a class="anchor" id="acdf62aed4b8a469e63c036e75567c2e3"></a><!-- doxytag: member="Mapping::createConstIterator" ref="acdf62aed4b8a469e63c036e75567c2e3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00059.html">ConstMappingIterator</a>* Mapping::createConstIterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method. </p>
<p>Override this method if your ConstIterator differs from the normal iterator. </p>

<p>Implements <a class="el" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274">ConstMapping</a>.</p>

<p>Reimplemented in <a class="el" href="a00061.html#a6a2c09d666b9e986798d0be48add4cdd">ConstMappingWrapper</a>.</p>

<p>Referenced by <a class="el" href="a00203.html#abb6ae13f91f830a9e6cd975426b9d6df">SNRThresholdDecider::checkIfAboveThreshold()</a>, and <a class="el" href="a00071.html#ae8d8435cae6ef92cc9bf8008e0bb56e4">Decider80211::createResult()</a>.</p>
<div class="fragment"><pre class="fragment">                                                            {
    <span class="keywordflow">return</span> <span class="keyword">dynamic_cast&lt;</span><a class="code" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a>*<span class="keyword">&gt;</span>( <span class="keyword">const_cast&lt;</span><a class="code" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>)-&gt;<a class="code" href="a00136.html#ab78335a7a119893d1e04495f7f587ca3" title="Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it...">createIterator</a>() );
  }
</pre></div>
</div>
</div>
<a class="anchor" id="aa659ff5ecd1020261cbd39d136ea1f57"></a><!-- doxytag: member="Mapping::createConstIterator" ref="aa659ff5ecd1020261cbd39d136ea1f57" args="(const Argument &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00059.html">ConstMappingIterator</a>* Mapping::createConstIterator </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method. </p>
<p>Override this method if your ConstIterator differs from the normal iterator. </p>

<p>Implements <a class="el" href="a00058.html#a951552e2e7f48717ed79d540af538d73">ConstMapping</a>.</p>

<p>Reimplemented in <a class="el" href="a00061.html#a648971050f302ee9afd31ebd51d54698">ConstMappingWrapper</a>.</p>
<div class="fragment"><pre class="fragment">                                                                               {
    <span class="keywordflow">return</span> <span class="keyword">dynamic_cast&lt;</span><a class="code" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a>*<span class="keyword">&gt;</span>( <span class="keyword">const_cast&lt;</span><a class="code" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>)-&gt;<a class="code" href="a00136.html#ab78335a7a119893d1e04495f7f587ca3" title="Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it...">createIterator</a>(pos) );
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a8723ba0f78d2f259f1f150c9db346cb2"></a><!-- doxytag: member="Mapping::createIterator" ref="a8723ba0f78d2f259f1f150c9db346cb2" args="(const Argument &amp;pos)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00137.html">MappingIterator</a>* Mapping::createIterator </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a pointer of a new Iterator which is able to iterate over the function and can change it. </p>
<p>The iterator starts at the passed position. </p>

<p>Implemented in <a class="el" href="a00083.html#a4dcb7018c79d6db7f0dc884dcabbcec1">DelayedMapping</a>, <a class="el" href="a00090.html#ac05ee0f09361957877cde397b66b028b">FilledUpMapping</a>, <a class="el" href="a00148.html#a2aa6a9a6b64954e20c6ee15f4bfb9925">MultiDimMapping&lt; Interpolator &gt;</a>, <a class="el" href="a00148.html#a2aa6a9a6b64954e20c6ee15f4bfb9925">MultiDimMapping&lt; Linear &gt;</a>, <a class="el" href="a00061.html#ab6de270ec2325131f99174860f396025">ConstMappingWrapper</a>, <a class="el" href="a00120.html#ad0da987f0b7bd22db5a18ca2558533a4">LinearIntplMapping</a>, <a class="el" href="a00212.html#a46c922604b76bf239263820a34a6ff29">TimeMapping&lt; Interpolator &gt;</a>, and <a class="el" href="a00212.html#a46c922604b76bf239263820a34a6ff29">TimeMapping&lt; Linear &gt;</a>.</p>

</div>
</div>
<a class="anchor" id="a973f72ed384d6cead14f23d20bafee93"></a><!-- doxytag: member="Mapping::operator=" ref="a973f72ed384d6cead14f23d20bafee93" args="(const Mapping &amp;copy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00136.html">Mapping</a>&amp; Mapping::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00136.html">Mapping</a> &amp;&#160;</td>
          <td class="paramname"><em>copy</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Mapping assignment operator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">copy</td><td>A Mapping of identical element and allocator types.</td></tr>
  </table>
  </dd>
</dl>
<p>All the elements of <em>copy</em> are copied. </p>

<p>References <a class="el" href="a00058.html#a28a66ff19a5046d773d6f0c49f12353f">ConstMapping::operator=()</a>.</p>
<div class="fragment"><pre class="fragment">  {
    <a class="code" href="a00136.html#a973f72ed384d6cead14f23d20bafee93" title="Mapping assignment operator.">ConstMapping::operator=</a>(copy);
    <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  }
</pre></div>
</div>
</div>
<a class="anchor" id="ab8906dfac661d5c6a0a35cf1744f06ed"></a><!-- doxytag: member="Mapping::setValue" ref="ab8906dfac661d5c6a0a35cf1744f06ed" args="(const Argument &amp;pos, argument_value_cref_t value)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Mapping::setValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">argument_value_cref_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Changes the value of the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the specified position. </p>
<p>The complexity of this method depends on the implementation. </p>

<p>Implemented in <a class="el" href="a00083.html#a27c3282471353c1e6def96b4e1604c56">DelayedMapping</a>, <a class="el" href="a00061.html#ae546ec9047dae116ef51b5919cf4621a">ConstMappingWrapper</a>, and <a class="el" href="a00120.html#a8da77310505c9367e0b687f5e9934555">LinearIntplMapping</a>.</p>

<p>Referenced by <a class="el" href="a00138.html#af1b74160ce464f825e0715f1fc656f5f">MappingUtils::addDiscontinuity()</a>, <a class="el" href="a00026.html#a1c05648ce7d11bc767f9acd3d64ee067">BaseMacLayer::createConstantMapping()</a>, <a class="el" href="a00196.html#a376421d6d86692c47dacaaebfd21ebd7">SimpleMacLayer::createMapping()</a>, <a class="el" href="a00128.html#a3a62f334346a15619853a8c6c87367aa">Mac80211::createSignal()</a>, <a class="el" href="a00026.html#a3da0a0f34a80528e6efcb5593a073c55">BaseMacLayer::createSingleFrequencyMapping()</a>, <a class="el" href="a00184.html#a9c8c9efca7849ffb32d315a71d2a7184">RandomFreqTimeModel::filterSignal()</a>, <a class="el" href="a00185.html#acac71950a5a7176292f7c404c32f609c">RandomFrequencyOnlyModel::filterSignal()</a>, and <a class="el" href="a00083.html#a27c3282471353c1e6def96b4e1604c56">DelayedMapping::setValue()</a>.</p>

</div>
</div>
<a class="anchor" id="a4aaa0e0cce7a366dee7b5be53595a74f"></a><!-- doxytag: member="Mapping::swap" ref="a4aaa0e0cce7a366dee7b5be53595a74f" args="(Mapping &amp;s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Mapping::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00136.html">Mapping</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Swaps data with another Mapping. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>A Mapping of the same element and allocator types.</td></tr>
  </table>
  </dd>
</dl>
<p>This exchanges the elements between two DimensionSet's in constant time. Note that the global std::swap() function is specialized such that std::swap(s1,s2) will feed to this function. </p>

<p>References <a class="el" href="a00058.html#a473df8fa0aa441ca1adb356b17b1f59f">ConstMapping::swap()</a>.</p>
<div class="fragment"><pre class="fragment">  {
    <a class="code" href="a00136.html#a4aaa0e0cce7a366dee7b5be53595a74f" title="Swaps data with another Mapping.">ConstMapping::swap</a>(s); <span class="comment">// swap the base class members</span>
    <span class="comment">/* Swap all D members */</span>
  }
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/<a class="el" href="a00298_source.html">MappingBase.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00136.html">Mapping</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:32 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
